package com.wp.mapper;

import com.wp.pojo.Blog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


@Mapper
public interface BlogMapper {
    void isPublishBlog(Blog blog);

    void updateStatusBlog(Blog blog);

    Long getBlogListCount(@Param("query") String query,
                          @Param("status") Integer status);

    void addBlog(Blog blog);

    void editBlog(Blog blog);
}
